<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<div class="row-fluid">
<div class="span7"><form:form  modelAttribute="role"
	id="form" class="box">
	 
	<input type="hidden" name="_method"  value="${_method}" />
	
	<div class="title">
	<h4 class="clearfix"><span class="left"> Role </span> <span
		class="box-form right">
	<button class="btn btn-success btn-mini" type="submit">Submit</button>
	</span></h4>
	<a href="#" class="minimize">Minimize</a></div>
	<div class="content form-horizontal">
	<div class="form-row"><label class="form-label span4">Name</label>
	<input class="span8" name="name" type="text" value="${role.name}" /></div>
	<div class="form-row row-fluid">
	<div class="span12">
	<div class="row-fluid"><label class="form-label span4">Authority</label>
	<div class="span8 controls" id="authorityList"><c:forEach
		items="${authorities}" var="entity">
		<div class="left marginT5">
		<div class="checker" id="uniform-undefined"><span> 
				
		<input
			type="checkbox" name="authorityList[${entity.id}].id" value="${entity.id}"
			class="styled" style="opacity: 0;"   			
			<c:choose>
				<c:when test="${role.authorityMap[entity.id] ne null }">
				 checked="checked"
				</c:when>		  
			</c:choose>	
			 > </span></div>
		<strong>${entity.name}</strong> 
		
		
		
		
		<span> -  ${entity.name}</span></div>

	</c:forEach></div>
	</div>
	</div>
	</div>
	</div>
</form:form></div>
</div>
 